Information processing method and device, apparatus, and storage medium

ABSTRACT

An information processing method and device, an apparatus, and a storage medium. The method includes: for inputted source video data, predicting a colour component of a coding block in the source video data according to a prediction mode to obtain a first prediction block, wherein the prediction mode is preset and is a Position-Dependent Prediction Combination (PDCP) mode; determining a difference between the colour component of the coding block and a prediction value of the first prediction block to obtain a residual block; and signalling the residual block and the prediction mode in a bitstream.

CROSS-REFERENCE TO RELATED APPLICATION

The present application is a continuation application of InternationalPCT Application No. PCT/CN2019/092723, filed on Jun. 25, 2019, theentire content of which is hereby incorporated by reference.

TECHNICAL FIELD

Implementations of the present disclosure relate to electronictechnology, and relate to but are not limited to a method and anapparatus for processing information, a device, and a storage medium.

BACKGROUND

In recent years, video services have developed rapidly in the field ofelectronic technology. For video services, source video data needs to becoded first, and the coded video data is transmitted to a user terminalthrough a channel of a mobile communication network or the Internet.

For a user, fluency of video will directly affect the user's videoviewing experience. However, complexity of information processing invideo coding directly affects the fluency of the video.

SUMMARY

In view of this, implementations of the present disclosure provide amethod and an apparatus for processing information, a device, and astorage medium, to solve at least one problem existing in relatedtechnologies.

Technical solutions of the implementations of the present disclosure areimplemented as follows.

In a first aspect, an implementation of the present disclosure providesa method for processing information, which includes: for inputted sourcevideo data, predicting a colour component of a coding block in thesource video data according to a prediction mode to obtain a firstprediction block, wherein the prediction mode is preset and is aPosition-Dependent Prediction Combination (PDPC) mode; determining adifference between the colour component of the coding block and aprediction value of the first prediction block to obtain a residualblock; and signalling the residual block and the prediction mode in abitstream.

In another implementation, the colour component is a luma value or achroma value.

In another implementation, predicting the colour component of the codingblock according to the prediction mode to obtain the first predictionblock includes: performing a chroma prediction on the chroma value ofthe coding block according to any prediction mode in a first modecombination to obtain the first prediction block; wherein, the firstmode combination includes following PDPC modes: a prediction mode withan index smaller than a first numerical value but not a planarprediction mode or a direct current (DC) component prediction mode, aprediction mode with an index greater than the first numerical value andsmaller than or equal to a second numerical value, a prediction modewith an index greater than or equal to a third numerical value andsmaller than a fourth numerical value, and a prediction mode with anindex greater than the fourth numerical value, among N preset spatialprediction modes within a component.

In another implementation, predicting the colour component of the codingblock according to the prediction mode to obtain the first predictionblock includes: performing a chroma prediction on the chroma value ofthe coding block according to any prediction mode in a second modecombination to obtain the first prediction block; wherein, the secondmode combination includes following PDPC modes: a prediction mode withan index smaller than or equal to a second numerical value but not aplanar prediction mode or a DC prediction mode, and a prediction modewith an index greater than or equal to a third numerical value, among Npreset spatial prediction modes within a component.

In another implementation, predicting the colour component of the codingblock according to the prediction mode to obtain the first predictionblock includes: performing a chroma prediction on the chroma value ofthe coding block according to any prediction mode in a third modecombination to obtain the first prediction block; wherein, the thirdmode combination includes following PDPC modes: a horizontal predictionmode, a vertical prediction mode, and a prediction mode with an indexsmaller than or equal to a second numerical value but not a planarprediction mode or a DC prediction mode, and a prediction mode with anindex greater than or equal to a third numerical value, among N presetspatial prediction modes within a component.

In another implementation, predicting the colour component of the codingblock according to the prediction mode to obtain the first predictionblock includes: performing a chroma prediction on the chroma value ofthe coding block according to any prediction mode in a fourth modecombination to obtain the first prediction block; wherein, the fourthmode combination includes following PDPC modes: a horizontal predictionmode, a vertical prediction mode, and a prediction mode with an indexsmaller than or equal to a second numerical value and including a planarprediction mode and a DC prediction mode, and a prediction mode with anindex greater than or equal to a third numerical value, among N presetspatial prediction modes within a component.

In another implementation, for the inputted source video data,predicting the colour component of the coding block in the source videodata according to the prediction mode to obtain the first predictionblock includes: performing a luma prediction on the luma value of thecoding block according to any prediction mode in any one of the first tofourth mode combinations to obtain the first prediction block.

In a second aspect, an implementation of the present disclosure providesan apparatus for processing information, which includes: a predictionmodule, configured to, for inputted source video data, predict a colourcomponent of a coding block in the source video data according to aprediction mode to obtain a first prediction block, wherein theprediction mode is preset and is a PDPC mode; a residual determinationmodule, configured to determine a difference between the colourcomponent of the coding block and a prediction value of the firstprediction block to obtain a residual block; and a signalling module,configured to signal the residual block and the prediction mode in abitstream.

In another implementation, the colour component is a luma value or achroma value.

In another implementation, the prediction module includes: a chromaprediction unit, configured to perform a chroma prediction on the chromavalue of the coding block according to any prediction mode in a firstmode combination to obtain the first prediction block; wherein the firstmode combination includes following PDPC modes: a prediction mode withan index smaller than a first numerical value but not a planarprediction mode or a DC prediction mode, a prediction mode with an indexgreater than the first numerical value and smaller than or equal to asecond numerical value, a prediction mode with an index greater than orequal to a third numerical value and smaller than a fourth numericalvalue, and a prediction mode with an index greater than the fourthnumerical value, among N preset spatial prediction modes within acomponent.

In another implementation, the prediction module includes a chromaprediction unit, configured to perform a chroma prediction on the chromavalue of the coding block according to any prediction mode in a secondmode combination to obtain the first prediction block; wherein, thesecond mode combination includes following PDPC modes: a prediction modewith an index smaller than or equal to a second numerical value but nota planar prediction mode or a DC prediction mode, and a prediction modewith an index greater than or equal to a third numerical value, among Npreset spatial prediction modes within a component.

In another implementation, the prediction module includes a chromaprediction unit, configured to perform a chroma prediction on the chromavalue of the coding block according to any prediction mode in a thirdmode combination to obtain the first prediction block; wherein, thethird mode combination includes following PDPC modes: a horizontalprediction mode, a vertical prediction mode, and a prediction mode withan index smaller than or equal to a second numerical value but not aplanar prediction mode or a DC prediction mode, and a prediction modewith an index greater than or equal to a third numerical value, among Npreset spatial prediction modes within a component.

In another implementation, the prediction module includes a chromaprediction unit, configured to perform a chroma prediction on the chromavalue of the coding block according to any prediction mode in a fourthmode combination to obtain the first prediction block; wherein, thefourth mode combination includes following PDPC modes: a horizontalprediction mode, a vertical prediction mode, and a prediction mode withan index smaller than or equal to a second numerical value and includinga planar prediction mode and a DC prediction mode, and a prediction modewith an index greater than or equal to a third numerical value, among Npreset spatial prediction modes within a component.

In another implementation, the prediction module includes a lumaprediction unit, configured to perform a luma prediction on the lumavalue of the coding block according to any prediction mode in any one ofthe first to fourth mode combinations to obtain the first predictionblock.

In a third aspect, an implementation of the present disclosure providesa method for processing information, which includes: for an inputtedbitstream, predicting a colour component of a coding block in thebitstream according to a prediction mode in the bitstream to obtain asecond prediction block, wherein the prediction mode is preset and is aPDPC mode; determining a sum of a difference of a residual block in thebitstream and a prediction value of the second prediction block toobtain a reconstructed block; and processing the reconstructed block,and outputting processed video data.

In a fourth aspect, an implementation of the present disclosure providesan apparatus for processing information, which includes: a predictionmodule, configured to, for an inputted bitstream, predict a colourcomponent of a coding block in the bitstream according to a predictionmode in the bitstream to obtain a second prediction block, wherein theprediction mode is preset and is a PDPC mode; a recovery module,configured to determine a sum of a difference of a residual block in thebitstream and a prediction value of the second prediction block toobtain a reconstructed block; and a video output module, configured toprocess the reconstructed block, and output processed video data.

In a fifth aspect, an implementation of the present disclosure providesa method for processing information, which includes: for inputted sourcevideo data, predicting a colour component of a coding block in thesource video data according to a prediction mode to obtain a thirdprediction block, wherein the prediction mode is preset and is a PDPCmode; refining the third prediction block according to the predictionmode to obtain a third refinement block; determining a differencebetween the colour component of the coding block and a refinement valueof the third refinement block to obtain a residual block; and signallingthe residual block and the prediction mode in a bitstream.

In a sixth aspect, an implementation of the present disclosure providesan apparatus for processing information, which includes: a predictionmodule, configured to, for inputted source video data, predict a colourcomponent of a coding block in the source video data according to aprediction mode to obtain a third prediction block, wherein theprediction mode is preset and is a PDPC mode; a refinement module,configured to refine the third prediction block according to theprediction mode to obtain a third refinement block; a residualdetermination module, configured to determine a difference between thecolour component of the coding block and a refinement value of the thirdrefinement block to obtain a residual block; and a signalling module,configured to signal the residual block and the prediction mode in abitstream.

In a seventh aspect, an implementation of the present disclosureprovides a method for processing information, which includes: for aninputted bitstream, predicting a colour component of a coding block inthe bitstream according to a prediction mode in the bitstream to obtaina fourth prediction block, wherein the prediction mode is preset and isa PDPC mode; refining the fourth prediction block according to theprediction mode to obtain a fourth refinement block; determining a sumof a difference of a residual block in the bitstream and a refinementvalue of the fourth refinement block to obtain a reconstructed block;and processing the reconstructed block, and outputting processed videodata.

In an eighth aspect, an implementation of the present disclosureprovides an apparatus for processing information, which includes: aprediction module, configured to, for an inputted bitstream, predict acolour component of a coding block in the bitstream according to aprediction mode in the bitstream to obtain a fourth prediction block,wherein the prediction mode is preset and is a PDPC mode; a refinementmodule, configured to refine the fourth prediction block according tothe prediction mode to obtain a fourth refinement block; a recoverymodule, configured to determine a sum of a difference of a residualblock in the bitstream and a refinement value of the fourth refinementblock to obtain a reconstructed block; and a video output module,configured to process the reconstructed block, and output processedvideo data.

In a ninth aspect, an implementation of the present disclosure providesan electronic device, including a memory and a processor, wherein thememory stores a computer program which is runnable on the processor, andthe processor implements acts in the above method for processinginformation when executing the program.

In a tenth aspect, an implementation of the present disclosure providesa computer readable storage medium, on which a computer program isstored, wherein when the computer program is executed by a processor,acts in the above method for processing information are implemented.

In an implementation of the present disclosure, for inputted sourcevideo data, after the first prediction block is obtained by predicting acolour component of the coding block in the source video data accordingto a prediction mode which is preset and is the PDPC mode, instead ofrefining a prediction value in the first prediction block, thedifference between the prediction value of the first prediction blockand the colour component of the coding block is directly determined. Inthis way, on the premise of ensuring performance of video coding anddecoding, complexity of information processing in video coding anddecoding can be reduced, especially complexity of intra predictionprocessing.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of an architecture of a network accordingto an implementation of the present disclosure.

FIG. 2A is a schematic diagram of a structure of a video encoderaccording to an implementation of the present disclosure.

FIG. 2B is a schematic diagram of a structure of a video decoderaccording to an implementation of the present disclosure.

FIG. 2C is a schematic diagram of spatial prediction modes within 94components according to an implementation of the present disclosure.

FIG. 2D is a schematic diagram of a method for calculating PDPC in a DCprediction mode according to an implementation of the presentdisclosure.

FIG. 3A is a schematic diagram of an implementation process of a methodfor processing information according to an implementation of the presentdisclosure.

FIG. 3B is a schematic diagram of an implementation process of anothermethod for processing information according to an implementation of thepresent disclosure.

FIG. 4A is a schematic diagram of an implementation process of yetanother method for processing information according to an implementationof the present disclosure.

FIG. 4B is a schematic diagram of an implementation process of furtheranother method for processing information according to an implementationof the present disclosure.

FIG. 5 is a schematic diagram of an implementation process of anothermethod for processing information according to an implementation of thepresent disclosure.

FIG. 6 is a schematic diagram of an implementation process of yetanother method for processing information according to an implementationof the present disclosure.

FIG. 7 is a schematic diagram of an implementation process of furtheranother method for processing information according to an implementationof the present disclosure.

FIG. 8 is a schematic diagram of an implementation process of anothermethod for processing information according to an implementation of thepresent disclosure.

FIG. 9A is a schematic diagram of an implementation process of yetanother method for processing information according to an implementationof the present disclosure.

FIG. 9B is a schematic diagram of an implementation process of furtheranother method for processing information according to an implementationof the present disclosure.

FIG. 10 is a schematic diagram of an implementation process of anothermethod for processing information according to an implementation of thepresent disclosure.

FIG. 11A is a schematic diagram of an implementation process of yetanother method for processing information according to an implementationof the present disclosure.

FIG. 11B is a schematic diagram of an implementation process of furtheranother method for processing information according to an implementationof the present disclosure.

FIG. 12A is a schematic structure diagram of an apparatus for processinginformation according to an implementation of the present disclosure.

FIG. 12B is a schematic structure diagram of another apparatus forprocessing information according to an implementation of the presentdisclosure.

FIG. 13 is a schematic structure diagram of yet another apparatus forprocessing information according to an implementation of the presentdisclosure.

FIG. 14 is a schematic structure diagram of further another apparatusfor processing information according to an implementation of the presentdisclosure.

FIG. 15 is a schematic structure diagram of another apparatus forprocessing information according to an implementation of the presentdisclosure.

FIG. 16 is a schematic diagram of a hardware entity of an electronicdevice according to an implementation of the present disclosure.

DETAILED DESCRIPTION

In order to make objects, technical solutions, and advantages ofimplementations of the present disclosure clearer, specific technicalsolutions of the present disclosure will be described in further detailbelow with reference to accompanying drawings in the implementations ofthe present disclosure. Following implementations are intended toillustrate the present disclosure, but are not intended to limit thescope of the present disclosure.

Unless otherwise defined, all technical and scientific terms used hereinhave same meanings as those commonly understood by those skilled in thetechnical field of the present disclosure. Terms used herein are onlyfor the purpose of describing the implementations of the presentdisclosure, but are not intended to limit the present disclosure.

“Some implementations” revolved in following description describe asubset of all possible implementations, but it can be understood that“some implementations” can be a same subset or different subsets of allpossible implementations, and can be combined with each other withoutconflict.

It should be pointed out that the terms “first\second\third” in theimplementations of the present disclosure are only for distinguishingsimilar objects, but do not represent a specific order for objects.Understandably, the “first\second\third” can be interchanged in aspecific order or a sequence if allowed, so that the implementations ofthe present disclosure described here can be implemented in an orderother than that illustrated or described here.

The present implementation first provides a network architecture. FIG. 1is a schematic structure diagram of a network architecture according toan implementation of the present disclosure. As shown in FIG. 1, thenetwork architecture includes one or more electronic devices 11 to 1Nand a communication network 01, wherein the electronic devices 11 to 1Nmay perform video interaction through the communication network 01. Theelectronic devices may be various devices with video coding and decodingfunctions in implementation processes. For example, the electronicdevices may include mobile phones, tablet computers, e-readers, unmannedaerial vehicles, wearable devices (such as smart glasses, etc.),sweeping robots, personal computers, navigators, video phones,televisions, or servers, etc.

The electronic device has the video coding and decoding functions, andincludes a video encoder and/or a video encoder. For example, referringto that shown in FIG. 2A, a composition structure of a video encoder 21includes: a transform and quantization unit 211, an intra estimationunit 212, an intra prediction unit 213, a motion compensation unit 214,a motion estimation unit 215, an inverse transform and inversequantization unit 216, a filter controlling and analyzing unit 217, afiltering unit 218, a coding unit 219, and a decoded-picture buffer unit210, etc. Herein, the filtering unit 218 may implement deblockingfiltering and Sample Adaptive Offset (SAO) filtering, and the codingunit 219 may implement header information coding and Context-basedAdaptive Binary Arithmatic Coding (CABAC).

For inputted source video data, a video coding block may be obtained byCoding Tree Unit (CTU) division, and then for residual pixel informationobtained after intra or inter prediction, the video coding block istransformed by the transform and quantization unit 211, includingtransforming the residual information from a pixel domain to atransformation domain, and quantizing an obtained transform coefficientto further reduce a bit rate. The intra estimation unit 212 and theintra prediction unit 213 are configured to perform an intra predictionon the video coding block. Specifically, the intra estimation unit 212and the intra prediction unit 213 are configured to determine an intraprediction mode to be used for coding the video coding block. The motioncompensation unit 214 and the motion estimation unit 215 are configuredto execute inter prediction coding of the received video coding blockwith respect to one or more blocks in one or more reference pictures toprovide temporal prediction information. A motion estimation executed bythe motion estimation unit 215 is a process of generating a motionvector, the motion vector may be used to estimate the motion of thevideo coding block, and then the motion compensation unit 214 executes amotion compensation based on the motion vector determined by the motionestimation unit 215. After the intra prediction mode is determined, theintra prediction unit 213 is also configured to provide selected intraprediction data to the coding unit 219, and the motion estimation unit215 also sends calculated motion vector data to the coding unit 219. Inaddition, the inverse transform and inverse quantization unit 216 isconfigured to reconstruct the video coding block, reconstruct a residualblock in the pixel domain, block effect artifacts are removed for thereconstructed residual block through the filter controlling andanalyzing unit 217 and the filtering unit 218, and then thereconstructed residual block is added to an intra predictive block inthe decoded-picture buffer unit 210 to generate a reconstructed videocoding block. The coding unit 219 is configured to code various codingparameters and quantized transform coefficients. In a CABAC-based codingalgorithm, a context content may be based on neighbouring coding blocks,and may be used for coding information indicating the determined intraprediction mode, and outputting a bitstream of the source video data.And the decoded-picture buffer unit 210 is configured to store thereconstructed video coding block for prediction reference. As videopicture encoding progresses, new reconstructed video coding blocks willbe generated continuously, and these reconstructed video coding blockswill be stored in the decoded picture buffer unit 210.

A video decoder 22 corresponding to the video encoder 21, a compositionstructure of which is as shown in FIG. 2B, includes: a decoding unit221, an inverse transform and inverse quantization unit 222, an intraprediction unit 223, a motion compensation unit 224, a filtering unit225, and a decoded-picture buffer unit 226, etc. Herein the decodingunit 221 may implement header information decoding and CABAC decoding,and the filtering unit 225 may implement deblocking filtering and SAOfiltering. After inputted source video data is coded in FIG. 2A, thebitstream of the source video data is outputted. The bitstream isinputted into the video decoder 22, and first passes through thedecoding unit 221 to obtain the decoded transform coefficients. Thetransform coefficients are processed by the inverse transform andinverse quantization unit 222 to generate a residual block in the pixeldomain. The intra prediction unit 223 may be configured to generateprediction data of the current video coding block based on thedetermined intra prediction mode and data which is from a currentpicture and passes through a coding block previously. The motioncompensation unit 224 determines prediction information for the videocoding block by parsing the motion vector and another associated syntaxelement, and uses the prediction information to generate a predictiveblock of the video coding block which is currently being decoded. Adecoded video block is formed by summing the residual block from theinverse transform and inverse quantization unit 222 with thecorresponding predictive block generated by the intra prediction unit223 or the motion compensation unit 224. The obtained decoded video datais processed by the filtering unit 225 to remove blocking effectartifacts, which may improve video quality. Then, the decoded video datais stored in the decoded-picture buffer unit 226, and thedecoded-picture buffer unit 226 is configured to store a referencepicture for a subsequent intra prediction or motion compensation, and isalso configured to output the video data, thus obtaining the recoveredsource video data.

Before describing the implementations of the present disclosure indetail, firstly, the intra prediction mode is briefly explained.

In the latest Versatile Video Coding (VVC) draft (also called H.266), inorder to capture a finer edge direction presented in natural video, asshown in FIG. 2C, the test model VTM5.0 of VVC defines spatialprediction modes in 94 components indexed from −14 to 80, hereinincluding two non-angular modes, namely Planar mode (hereinafterreferred to as a planar prediction mode) indexed 0 and DC mode indexed 1(hereinafter referred to a DC prediction mode). It should be noted thatthe index is used for uniquely identifying the prediction mode, and maybe used as a mode index when in use. In an intra prediction, an intraspatial prediction within the components is performed on the currentblock by using one or more prediction modes among the spatial predictionmodes within the 94 components.

It should be noted that the method for processing information accordingto an implementation of the present disclosure is mainly applied to theintra prediction unit 213 shown in FIG. 2A and the intra prediction unit223 shown in FIG. 2B, and is used for obtaining a intra prediction valueof the current block. That is to say, the method for processinginformation according to an implementation of the present disclosure maybe applied to the video encoder 21, or the video decoder 22, or may evenbe applied to the video encoder and the video decoder at the same time,which is not specifically limited in an implementation of the presentdisclosure. When the method described below is used in the unit 213, the“current block” refers to a coding block in the unit 213; when themethod described below is used in the unit 223, the “current block”refers to a coding block in the unit 223.

In the related art, an intra prediction process executed by the intraprediction unit 213/223 will be described. Generally speaking, the intraprediction process mainly includes following acts S201 to S204.

In the act S201, before performing luma and chroma predictions on thecurrent block (which may be a coding block or a coding block), it isnecessary to obtain values of reference pixels around the current blockfirst. If none of the reference pixels exists, the pixel value of 512 isused for filling; if only part of the reference pixels do not exist,values of the nearest existing reference pixels are used for filling.

In the act S202, it is determined whether the reference pixels need tobe filtered according to a specific condition such as the predictionmode, or a size of the current block, etc. If filtering is needed, athree-tap smoothing filter with a coefficient of [1,2,1] is used tofilter the reference pixels.

In the act S203, according to a calculation way of every predictionmode, the reference pixels are used to predict the current block, toobtain a prediction value of each pixel in the current block.

In the act S204, for following several prediction modes, it is neededthat after obtaining the prediction value of each pixel in the currentblock, PDPC is used to further refine the prediction value: the planarprediction mode, the DC prediction mode, a horizontal prediction mode, avertical prediction mode, an angular prediction mode with the indexsmaller than or equal to 10 (including a wide-angle mode), and anangular prediction mode with the index greater than or equal to 58(including the wide-angle mode). Wherein, the planar prediction mode isa prediction mode indexed 0 in the intra prediction modes shown in FIG.2C, the DC prediction mode is a prediction mode indexed 1 in the intraprediction modes shown in FIG. 2C, and the horizontal prediction mode isa prediction mode indexed 18 in the intra prediction modes shown in FIG.2C; and the vertical prediction mode is a prediction mode indexed 50 inthe intra prediction modes shown in FIG. 2C.

It should be noted that a principle of the PDPC is to refine theprediction value according to a left reference pixel (left), a topreference pixel (top), and a top left corner reference pixel (topleft)of the current block, and then determine a residual error between therefined prediction value and a value of the corresponding pixel in thecurrent block.

For example, taking the method for calculating PDPC in the DC predictionmode as an example, as shown in FIG. 2D and Formula (1):

P(x,y)=(wL*P _(left) +wT*P _(top) −wTL*P_(topLeft)+(64−wL−wT+wTL)*Q(x,y)+32)>>6;

wT=32>>std:min(31,((y<<1)>>scale));

wL=32>>std:min(31,((x<<1)>>scale));

wTL=(wL>>4)+(wT>>4);  (1).

According to a value P_(left) of a reconstructed pixel on the leftreference pixel left, a distance between the left and a current point(x, y) in the current block 24 (which may be represented by a weightwL), a value P_(top) of a reconstructed pixel on the top reference pixel(top), a distance between the top and the current point (x, y) (whichmay be represented by the weight wT), a value P_(topleft) of areconstructed pixel on the top left corner reference pixel topleft, anda distance between the topleft and the current point (x, y) (which maybe represented by a weight wTL), of a current block 24, the predictionvalue Q(x, y) of the current point (x, y) is refined to obtain therefined prediction value P(x, y).

Implementations of the present disclosure will be elaborated below withreference to the accompanying drawings. The method for processinginformation according to an implementation of the present disclosure maybe applied to both the video encoder 21 and the video decoder 22, whichis not specifically limited in an implementation of the presentdisclosure.

An implementation of the present disclosure provides a method forprocessing information, wherein the method is applied to the videoencoder 21 of the electronic device. Functions implemented by the methodmay be realized by calling program codes by a processor in theelectronic device. Of course, the program codes may be stored in acomputer storage medium. It may be seen that the electronic device atleast includes the processor and a storage medium.

FIG. 3A is a schematic diagram of an implementation process of a methodfor processing information according to an implementation of the presentdisclosure. As shown in FIG. 2, the method includes following acts 301to 303.

In the act S301, for inputted source video data, a colour component of acoding block in the source video data is predicted according to aprediction mode to obtain a first prediction block, wherein theprediction mode is preset and is a PDPC mode.

In another implementation, the colour component is a chroma value or aluma value. It should be noted that a prediction mode used whenpredicting the current block (including the coding block and the codingblock) before using the PDPC is defined as the PDPC mode. For example,in VTM5.0, the PDPC mode includes a planar prediction mode, a DCprediction mode, a horizontal prediction mode, a vertical predictionmode, an angular prediction mode with an index smaller than or equal to10 (including the wide-angle mode), or an angular prediction mode withan index greater than or equal to 58 (including the wide-angle mode).

It should be noted that a coding block refers to a picture area in thesource video data on which prediction processing and coding processingneed to be performed. In an implementation, the source video data may beobtained by a picture acquisition apparatus.

Understandably, after obtaining the first prediction block, the act S302is directly performed to determine a difference between the colourcomponent of the coding block and a prediction value of the firstprediction block. Thus, before a residual block is determined, PDPCprocessing is not performed on the first prediction block, which canreduce processing complexity of intra prediction.

In the act S302, the difference between the colour component of thecoding block and the prediction value of the first prediction block isdetermined to obtain the residual block.

In the act S303, the residual block and the prediction mode aresignalled in a bitstream.

In an implementation of the present disclosure, after obtaining thefirst prediction block by predicting the colour component of the codingblock in the source video data according to the prediction mode which ispreset and is the PDPC mode, instead of refining each prediction valuein the first prediction block, the difference between the predictionvalue of the first prediction block and the colour component of thecoding block is directly determined. In this way, on the premise ofensuring video coding performance, processing complexity of intraprediction can be reduced.

An implementation of the present disclosure provides another method forprocessing information, wherein the method is applied to the videodecoder 21 of the electronic device. FIG. 3B is a schematic diagram ofan implementation process of another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 3B, the method includes following acts S311 to S313.

In the act S311, for an inputted bitstream, a colour component of acoding block in the bitstream is predicted according to a predictionmode in the bitstream to obtain a second prediction block; wherein, theprediction mode is preset and is a PDPC mode.

In another implementation, the colour component is a chroma value or aluma value.

In the act S312, a sum of a difference of a residual block in thebitstream and a prediction value of the second prediction block isdetermined to obtain a reconstructed block.

In the act S313, the reconstructed block is processed, outputtingprocessed video data.

In an implementation of the present disclosure, according to aprediction mode in the inputted bitstream, a colour component of acoding block in the bitstream is predicted to obtain a second predictionblock, wherein the prediction mode is preset and is the PDPC mode. Afterobtaining the second prediction block, instead of refining eachprediction value in the second prediction block, a sum of a differenceof a residual block in the bitstream and the prediction value of thesecond prediction block is directly determined, thereby obtaining thereconstructed block. In this way, on the premise of ensuring videodecoding performance, processing complexity of intra prediction can bereduced.

An implementation of the present disclosure provides yet another methodfor processing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 4A is a schematic diagram ofan implementation process of yet another method for processinginformation according to an implementation of the present disclosure. Asshown in FIG. 4A, and the method includes following acts S401 to S403.

In the act S401, for inputted source video data, a chroma prediction isperformed on a chroma value of a coding block in the source video dataaccording to a prediction mode to obtain a first prediction block,wherein the prediction mode is preset and is a PDPC mode.

Understandably, the improvement of video coding and decoding performanceby the PDPC is based on saving coding bits and sacrificing chromaperformance Since contents of pictures reflected by luma and chroma aredifferent, refining the first prediction block by the PDPC cannotimprove performances of luma and chroma simultaneously. In animplementation of the present disclosure, when performing the chromaprediction of the coding block, after performing the chroma predictionon the chroma value of the coding block in the source video data byusing the preset prediction mode, instead of refining the obtained firstprediction block by using the PDPC, a chroma residual block is directlydetermined according to the coding block and the first prediction block.

In the act S402, a difference between the chroma value of the codingblock and a chroma prediction value of the first prediction block isdetermined to obtain a residual block.

Here, understandably, the obtained residual block is a chroma residualblock, that is, it includes the difference between the chroma value ofthe coding block and a luma prediction value of the first predictionblock.

In the act S403, the residual block and the prediction mode aresignalled in a bitstream.

In an implementation of the present disclosure, for inputted sourcevideo data, after a chroma prediction is performed on the chroma valueof the coding block in the source video data according to a predictionmode which is preset and is the PDPC mode, instead of refining theprediction value of the obtained first prediction block, the residualvalue is directly determined. In this way, processing complexity ofchroma intra prediction is reduced without affecting chroma performance.

On the basis of the aforementioned acts S401 to S403, in anotherimplementation, the method further includes following acts S404 to S407.

In the act S404, a luma prediction is performed on a luma value of thecoding block according to a prediction mode which is preset and is thePDPC mode to obtain the first prediction block.

In the act S405, the prediction value of the first prediction block isrefined to obtain a first refinement block.

In the act S406, a difference between the luma value of the coding blockand a corresponding refinement value of the first refinement block isdetermined to obtain a refinement residual block.

In the act S407, the refined residual block and the prediction mode aresignalled in the bitstream.

It should be noted that in another implementation, for the lumaprediction, the video encoder may also execute acts S901 to S903 in afollowing implementation, or execute acts S101 to S103 in a followingimplementation.

An implementation of the present disclosure provides further anothermethod for processing information, wherein the method is applied to thevideo decoder 21 of the electronic device. FIG. 4B is a schematicdiagram of an implementation process of further another method forprocessing information according to an implementation of the presentdisclosure. As shown in FIG. 4B, the method includes following acts S411to S413.

In the act S411, for an inputted bitstream, a chroma value of a codingblock in the bitstream is predicted according to a prediction mode inthe bitstream to obtain a second prediction block; wherein theprediction mode is preset and is the PDPC mode.

In the act S412, a sum of a chroma difference of a residual block in thebitstream and a chroma prediction value of the second prediction blockis determined to obtain a reconstructed block.

In the act S413, the reconstructed block is processed, outputtingprocessed video data.

In an implementation of the present disclosure, for inputted bitstream,the chroma value of the coding block in the bitstream is predictedaccording to the prediction mode in the bitstream to obtain the secondprediction block, wherein the prediction mode is predicted and is thePDPC mode. After obtaining the second prediction block, instead ofrefining the chroma prediction value of the obtained second predictionblock, the residual block and the second prediction block are directlyadded together to obtain the reconstructed block, the reconstructedblock is processed, and the processed video data is output. In this way,processing complexity of chroma intra prediction is reduced withoutaffecting chroma performance.

Based on the aforementioned acts S411 to S413, in anotherimplementation, the method further includes following acts S414 to S417.

In the act S414, for the inputted bitstream, a luma value of the codingblock in the bitstream is predicted according to the prediction mode inthe bitstream to obtain a second prediction block; wherein theprediction mode is preset and is the PDPC mode.

In the act S415, a luma prediction value of the second prediction blockis refined to obtain a second refinement block.

In the act S416, a sum of a luma difference of a residual block in thebitstream and the luma prediction value of the second refinement blockis determined to obtain a reconstructed block.

In the act S417, the reconstructed block is processed, outputtingprocessed video data.

It should be noted that in another implementation, for a lumaprediction, the video decoder may also execute acts S911 to S913 in afollowing implementation, or in another implementation, the predictionmode in act S911 is any prediction mode in any one of following first tofourth mode combinations.

An implementation of the present disclosure provides another method forprocessing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 5 is a schematic diagram of animplementation process of another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 5, the method includes following acts S501 to S503.

In the act S501, for inputted source video data, a chroma prediction isperformed on a chroma value of a coding block in the source video dataaccording to any prediction mode in a first mode combination to obtain afirst prediction block.

Herein, the first mode combination includes following PDPC modes: aprediction mode with an index smaller than a first numerical value butnot the planar prediction mode or the DC prediction mode, a predictionmode with an index greater than the first numerical value and smallerthan or equal to a second numerical value, a prediction mode with anindex greater than or equal to a third numerical value and smaller thana fourth numerical value, and a prediction mode with an index greaterthan the fourth numerical value, among N preset spatial prediction modeswithin a component.

It should be noted that the first numerical value, the second numericalvalue, the third numerical value, and the fourth numerical value areusually preset mode index sequence values (that is, values of theindexes). In a preferred implementation, the N spatial prediction modeswithin the component are the spatial prediction modes within the 94components shown in FIG. 2C, and the first numerical value is set to 2,the second numerical value is set to 10, the third numerical value isset to 58, and the fourth numerical value is set to 66, that is, whenthe chroma prediction is performed, and when any one of a predictionmode with an index smaller than 2 but not the planar prediction mode orthe DC prediction mode, a prediction mode with an index greater than 2and smaller than or equal to 10, a prediction mode with an index greaterthan or equal to 58 and smaller than 66, and a prediction mode with anindex greater than 66, among the spatial prediction modes within these94 components, is used, an obtained chroma prediction value is notrefined by using the PDPC. In other words, only in the planar predictionmode, the DC prediction mode, the horizontal prediction mode, thevertical prediction mode, the prediction mode indexed 2, and theprediction mode indexed 66, the obtained chroma prediction value isrefined by using the PDPC.

In the act S502, a difference between the chroma value of the codingblock and the chroma prediction value of the first prediction block isdetermined to obtain a residual block.

In the act S503, the residual block and the prediction mode aresignalled in a bitstream.

In an implementation of the present disclosure, when the chromaprediction is performed of the coding block by using the prediction modein the first mode combination, instead of refining the obtained chromaprediction value by using the PDPC, the difference between the chromaprediction value and the chroma value of the coding block is directlydetermined. In this way, on the basis of ensuring chroma predictionperformance, processing complexity of chroma prediction is reduced.

On the basis of the aforementioned acts S501 to S503, in anotherimplementation, the method further includes the aforementioned acts S403to S407.

It should be noted that in another implementation, for a lumaprediction, acts S901 to S903 in a following implementation may also beperformed, or acts S101 to S103 in a following implementation may beperformed.

It should also be noted that for the inputted bitstream, the videodecoder may execute decoding acts which are symmetrical with the aboveacts S501 to S503, which is not repeated here. In anotherimplementation, for the luma prediction, the video decoder may alsoperform acts S911 to S913 in a following implementation, or in anotherimplementation, the prediction mode in act S911 is any prediction modein any one of the first to fourth mode combinations.

An implementation of the present disclosure provides yet another methodfor processing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 6 is a schematic diagram of animplementation process of yet another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 6, the method includes following acts S601 to S603.

In the act S601, for inputted source video data, a chroma prediction isperformed on a chroma value of a coding block in the source video dataaccording to any prediction mode in the second mode combination toobtain a first prediction block. Wherein the second mode combinationincludes following PDPC modes: a prediction mode with an index smallerthan or equal to a second numerical value but not the planar predictionmode or the DC prediction mode, and a prediction mode with an indexgreater than or equal to a third numerical value, among N preset spatialprediction modes within a component.

It should be noted that the second numerical value and the thirdnumerical value are usually preset mode index sequence values (that is,values of the indexes). In a preferred implementation, the N spatialprediction modes within the component are the spatial prediction modeswithin the 94 components shown in FIG. 2C, and the second numericalvalue is set to 10, and the third numerical value is set to 58. That is,when the chroma prediction is performed, and when any one of aprediction mode with an index smaller than or equal to 10 but not theplanar prediction mode or the DC prediction mode, and a prediction modewith an index greater than or equal to 58, among the spatial predictionmodes within these 94 components, is used, an obtained chroma predictionvalue is not refined by using the PDPC. In this way, processingcomplexity of chroma prediction can be reduced. In other words, only inthe planar prediction mode, the DC prediction mode, the horizontalprediction mode, and the vertical prediction mode, the obtained chromaprediction value is refined by using the PDPC.

For another example, in another preferred implementation, the N spatialprediction modes within the component are the spatial prediction modeswithin the 94 components shown in FIG. 2C, and the second numericalvalue is set to 8, and the third numerical value is set to 60.

In the act S602, the difference between the chroma value of the codingblock and the chroma prediction value of the first prediction block isdetermined to obtain a residual block.

In the act S603, the residual block and the prediction mode aresignalled in a bitstream.

In an implementation of the present disclosure, when any prediction modein the second mode combination is used to predict the coding block, aresidual value is directly determined without refining the predictionvalue. In this way, on the premise of not affecting luma codingperformance basically, chroma coding performance is improved.Experimental data show that a performance of a Y component is lost by0.03%; a performance of a U component is increased by 0.16%, and aperformance of a V component is increased by 0.14%. It can be seen thatthe performance loss of the Y component is basically unchanged; andperformance improvement of the U component and performance improvementof the V component are obviously improved.

It should be noted that, based on the aforementioned acts S601 to S603,in another implementation, the method further includes theaforementioned acts S403 to S407. Or, in another implementation, for aluma prediction, acts S901 to S903 in a following implementation mayalso be performed, or acts S101 to S103 in a following implementationmay be performed.

It should also be noted that, for an inputted bitstream, the videodecoder may execute decoding acts which are symmetrical with the aboveacts S601 to S603, which will not be repeated here. In anotherimplementation, for the luma prediction, acts S911 to S913 in afollowing implementation may also be performed, and in anotherimplementation, the prediction mode in act S911 is any prediction modein any one of the first to fourth mode combinations.

An implementation of the present disclosure provides further anothermethod for processing information, wherein the method is applied to thevideo encoder 21 of the electronic device. FIG. 7 is a schematic diagramof an implementation process of further another method for processinginformation according to an implementation of the present disclosure. Asshown in FIG. 7, the method includes following acts S701 to S703.

In the act S701, for inputted source video data, a chroma prediction isperformed on a chroma value of a coding block in the source video dataaccording to any prediction mode in the third mode combination to obtaina first prediction block. Wherein the third mode combination includesfollowing PDPC modes: the horizontal prediction mode, the verticalprediction mode, and a prediction mode with an index smaller than orequal to a second numerical value but not the planar prediction mode orthe DC prediction mode, and a prediction mode with an index greater thanor equal to a third numerical value, among N preset spatial predictionmodes within a component.

It should be noted that the second numerical value and the thirdnumerical value are usually preset mode index sequence values (that is,values of the indexes). In a preferred implementation, the N spatialprediction modes within the component are the spatial prediction modeswithin the 94 components shown in FIG. 2C, and the second numericalvalue is set to 10, and the third numerical value is set to 58, that is,the third mode combination includes following PDPC modes: the horizontalprediction mode, the vertical prediction mode, and a prediction modewith an index smaller than or equal to 10 but not the planar predictionmode or the DC prediction mode, and a prediction mode with an indexgreater than or equal to 58, among the spatial prediction modes withinthe 94 components. In other words, only in the planar prediction modeand the DC prediction mode, an obtained chroma prediction value isrefined by using the PDPC, while in the third mode combination, theobtained chroma prediction value is not refined by using the PDPC, thusreducing processing complexity of chroma prediction.

In the act S702, a difference between the chroma value of the codingblock and the chroma prediction value of the first prediction block isdetermined to obtain a residual block.

In the act S703, the residual block and the prediction mode aresignalled in a bitstream.

It should be noted that, based on the aforementioned acts S701 to S703,in another implementation, the method further includes theaforementioned acts S403 to S407. Or, in another implementation, for aluma prediction, acts S901 to S903 in a following implementation mayalso be performed, or acts S101 to S103 in a following implementationmay be performed.

It should also be noted that, for an inputted bitstream, the videodecoder executes decoding acts which are symmetrical with the above actsS701 to S703, which will not be repeated here. In anotherimplementation, for the luma prediction, the video decoder may alsoexecute the above acts S414 to S417, or execute acts S911 to S913 in afollowing implementation, or in another implementation, the predictionmode in act S911 is any prediction mode in any one of the first tofourth mode combinations.

An implementation of the present disclosure provides another method forprocessing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 8 is a schematic diagram of animplementation process of another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 8, the method includes following acts S801 to S803.

In the act S801, for inputted source video data, a chroma prediction isperformed on a chroma value of a coding block in the source video dataaccording to any prediction mode in a fourth mode combination to obtaina first prediction block. Wherein the fourth mode combination includesfollowing PDPC modes: the horizontal prediction mode, the verticalprediction mode, and a prediction mode with an index smaller than orequal to a second numerical value and including the planar predictionmode and the DC prediction mode, and a prediction mode with an indexgreater than or equal to a third numerical value, among N preset spatialprediction modes within a component.

It should be noted that the second numerical value and the thirdnumerical value are usually preset mode index sequence values (that is,values of the indexes). In a preferred implementation, the N spatialprediction modes within the component are the spatial prediction modeswithin the 94 components shown in FIG. 2C, and the second numericalvalue is set to 10, and the third numerical value is set to 58, that is,the fourth mode combination includes following PDPC modes: thehorizontal prediction mode, the vertical prediction mode, and aprediction mode with an index smaller than or equal to 10, and aprediction mode with an index greater than or equal to 58, among the Nspatial prediction modes within the component. In other words, when achroma prediction is performed in all PDPC modes, an obtained chromaprediction value is not refined by using the PDPC.

In the act S802, a difference between the chroma value of the codingblock and the chroma prediction value of the first prediction block isdetermined to obtain a residual block.

In the act S803, the residual block and the prediction mode aresignalled in a bitstream.

It should be noted that, based on the aforementioned acts S801 to S803,in another implementation, the method also includes acts S401 to S403,or acts S501 to S503, or acts S601 to S603, or acts S701 to S703 in theabove implementations, or following acts S901 to S903.

It should also be noted that, for an inputted bitstream, the videodecoder may execute decoding acts which are symmetrical with the aboveacts S801 to S803, which is not repeated here. In anotherimplementation, for a luma prediction, the video decoder may alsoperform acts S414 to S417 above, or perform acts S911 to S914 infollowing implementations, or in another implementation, a predictionmode in act S911 is any prediction mode in any of the first to fourthmode combinations.

An implementation of the present disclosure provides yet another methodfor processing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 9 is a schematic diagram of animplementation process of yet another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 9A, the method includes following acts S901 to S903.

In the act S901, for inputted source video data, a luma value of acoding block in the source video data is predicted according to theprediction mode which is preset and is the PDPC mode to obtain a firstprediction block.

In the act S902, a difference between a luma value of the coding blockand a luma prediction value of the first prediction block is determinedto obtain a residual block.

In the act S903, the residual block and the prediction mode aresignalled in a bitstream.

In an implementation of the present disclosure, when the luma value ofthe coding block is predicted according to the prediction mode which ispreset and is the PDPC mode, the obtained luma prediction value is notrefined by using the PDPC, so that processing complexity of lumaprediction can be reduced.

It should be noted that, based on the aforementioned acts S901 to S903,in another implementation, the method also includes acts S401 to S403,or acts S501 to S503, or acts S601 to S603, or acts S701 to S703, oracts S801 to S803 in the above implementations.

An implementation of the present disclosure provides further anothermethod for processing information, wherein the method is applied to thevideo decoder 21 of the electronic device. FIG. 9B is a schematicdiagram of an implementation process of further another method forprocessing information according to an implementation of the presentdisclosure. As shown in FIG. 9B, the method includes following acts S911to S913.

In the act S911, for an inputted bitstream, a luma value of a codingblock in the bitstream is predicted according to a prediction mode inthe bitstream to obtain a second prediction block; wherein theprediction mode is preset and is the PDPC mode.

In another implementation, the prediction mode in act S911 is anyprediction mode in any of the first to fourth mode combinations.

In the act S912, a sum of a luma difference of a residual block in thebitstream and a luma prediction value of the second prediction block isdetermined to obtain a reconstructed block.

In the act S913, the reconstructed block is processed, outputtingprocessed video data.

An implementation of the present disclosure provides another method forprocessing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 10 is a schematic diagram ofan implementation process of another method for processing informationaccording to an implementation of the present disclosure. As shown inFIG. 10, the method includes following acts S101 to S103.

In the act S101, for inputted source video data, a luma prediction isperformed on a luma value of a coding block in the source video dataaccording to any prediction mode in any one of the first to fourth modecombinations to obtain the first prediction block.

In the act S102, a difference between the luma value of the coding blockand a luma prediction value of the first prediction block is determinedto obtain a residual block.

In the act S103, the residual block and the prediction mode aresignalled in a bitstream.

It should be noted that, based on the aforementioned acts S101 to S103,in another implementation, the method also includes acts S401 to S403,or acts S501 to S503, or acts S601 to S603, or acts S701 to S703, oracts S801 to S803 in the above implementations.

An implementation of the present disclosure provides yet another methodfor processing information, wherein the method is applied to the videoencoder 21 of the electronic device. FIG. 11A is a schematic diagram ofan implementation process of yet another method for processinginformation according to an implementation of the present disclosure. Asshown in FIG. 11A, the method includes following acts S1101 to S1104.

In the act S1101, for inputted source video data, a colour component ofa coding block in the source video data is predicted according to aprediction mode to obtain a third prediction block, wherein theprediction mode is preset and is the PDPC mode.

In another implementation, the colour component is a luma value or achroma value.

In the act S1102, the third prediction block is refined according to theprediction mode to obtain a third refinement block.

In the act S1103, a difference between the colour component of thecoding block and a refinement value of the third refinement block isdetermined to obtain a residual block.

In the act S1104, the residual block and the prediction mode aresignalled in a bitstream.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes: achroma prediction is performed on the chroma value of the coding blockaccording to any prediction mode in a fifth mode combination to obtainthe third prediction block; wherein the fifth mode combination includesfollowing PDPC modes: the planar prediction mode, the DC predictionmode, the horizontal prediction mode, the vertical prediction mode, aprediction mode with an index being a first numerical value among Npreset spatial prediction modes within a component, and a predictionmode with an index being a fourth numerical value among the N presetspatial prediction modes within a component.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes:the colour component of the coding block is predicted according to theprediction mode to obtain the third prediction block, when followingcases 1 to 4 are all met.

In the case 1, when the coding block is a luma block, and an IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, and a 0threference line is used for prediction; or, the coding block is a chromablock; wherein the 0th reference line refers to a reference line closestto the coding block.

In the case 3, the coding block is not coded by using a Block-basedDelta Pulse Code Modulation (BDPCM).

In the case 4, any of following conditions is met: the prediction modeis a horizontal prediction mode; the prediction mode is a verticalprediction mode; the prediction mode is a prediction mode with an indexbeing the first numerical value among the N preset spatial predictionmodes within a component; the prediction mode is a prediction mode withthe index being the fourth numerical value; the prediction mode is aprediction mode with the index smaller than or equal to a secondnumerical value, and the coding block is not a chroma block; or, theprediction mode is a prediction mode with the index greater than orequal to a third numerical value, and the coding block is not a chromablock.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes: achroma prediction is performed on the chroma value of the coding blockaccording to any prediction mode in a sixth mode combination to obtainthe third prediction block; wherein the sixth mode combination includesfollowing PDPC modes: the planar prediction mode, the DC predictionmode, the horizontal prediction mode, and the vertical prediction mode.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes:the colour component of the coding block is predicted according to theprediction mode to obtain the third prediction block, when followingcases 1 to 4 are all met.

In the case 1, when the coding block is a luma block, and the IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, the 0th referenceline is used for prediction; or, the coding block is a chroma block;wherein the 0th reference line refers to the reference line closest tothe coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode; theprediction mode is the vertical prediction mode; the prediction mode isa prediction mode with the index smaller than or equal to the secondnumerical value, and the coding block is not a chroma block; or, theprediction mode is a prediction mode with the index greater than orequal to the third numerical value, and the coding block is not a chromablock.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes: achroma prediction is performed on the chroma value of the coding blockaccording to any prediction mode in a seventh mode combination to obtainthe third prediction block; wherein the seventh mode combinationincludes following PDPC modes: the planar prediction mode, and the DCprediction mode.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes:the colour component of the coding block is predicted according to theprediction mode to obtain the third prediction block, when followingcases 1 to 4 are all met.

In the case 1, when the coding block is a luma block, and the IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, the 0th referenceline is used for prediction; or, the coding block is a chroma block;wherein the 0th reference line refers to the reference line closest tothe coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode, and thecoding block is not a chroma block; the prediction mode is the verticalprediction mode, and the coding block is not a chroma block; theprediction mode is a prediction mode with the index smaller than orequal to the second numerical value, and the coding block is not achroma block; or, the prediction mode is a prediction mode with theindex greater than or equal to the third numerical value, and the codingblock is not a chroma block.

In another implementation, for the act S1101, the colour component ofthe coding block in the source video data is predicted according to theprediction mode to obtain the third prediction block, which includes:when following cases 1 to 4 are all met, the colour component of thecoding block is predicted according to the prediction mode to obtain thethird prediction block.

In the case 1, the coding block is a luma block, and the IntraSub-Partitions is not used.

In the case 2, the coding block is a luma block, and the 0th referenceline is used for prediction; wherein the 0th reference line refers tothe reference line closest to the coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode; theprediction mode is the vertical prediction mode; the prediction mode isa prediction mode with the index smaller than or equal to the secondnumerical value; or, the prediction mode is a prediction mode with theindex greater than or equal to the third numerical value.

An implementation of the present disclosure provides further anothermethod for processing information, wherein the method is applied to thevideo decoder 21 of the electronic device. FIG. 11B is a schematicdiagram of an implementation process of further another method forprocessing information according to an implementation of the presentdisclosure. As shown in FIG. 11B, the method includes following actsS1121 to S1124.

In the act S1121, for an inputted bitstream, a colour component of acoding block in the bitstream is predicted according to a predictionmode in the bitstream to obtain a fourth prediction block; wherein theprediction mode is preset and is a PDPC mode.

In another implementation, the colour component is a chroma value or aluma value.

In the act S1122, the fourth prediction block is refined according tothe prediction mode to obtain a fourth refinement block.

In the act S1123, a sum of a difference of a residual block in thebitstream and a refinement value of the fourth refinement block isdetermined to obtain a reconstructed block.

In the act S1124, the reconstructed block is processed, outputtingprocessed video data.

In VTM5.0, the PDPC is applied to the planar prediction mode, the DCprediction mode, the horizontal prediction mode, the vertical predictionmode, and an angular prediction mode with an index smaller than or equalto 10 and an angular prediction mode with an index greater than or equalto 58 among the N spatial prediction modes within the component, in lumablock and chroma block prediction modes simultaneously, that is, afterpredicting a current block by using these prediction modes, a predictionvalue obtained by the prediction will be refined by using the PDPC.

In VTM5.0, it is stipulated that when all following cases (101) to (104)are met, the PDPC is used.

(101) When the current block is a luma block, the Intra Sub-Partitions(ISP) is not used; or, the current block is a chroma block.

(102) When the current block is a luma block, a 0th reference line isused for prediction; or, the current block is a chroma block; whereinthe 0th reference line refers to a reference line closest to the currentblock.

(103) The current block is not coded by using a Block-based Delta PulseCode Modulation (BDPCM).

(104) any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, the angular predictionmode with the index smaller than or equal to 10, or the angularprediction mode with the index greater than or equal to 58.

However, an improvement of coding and decoding performance by using thePDPC is built on the basis of saving coding bits and sacrificing chromaperformance Since picture contents reflected by luma and chroma aredifferent, PDPC technology cannot improve performances of luma andchroma simultaneously, and should not use the same PDPC for luma andchroma in a unified mode.

Based on this, the contents involved in the above-mentionedimplementations will be described below in combination with multiplepreferred implementations.

An implementation of the present disclosure provides a method formodifying the PDPC mode, which reduces chroma prediction modes usingPDPC, after this limitation, time complexity will be reduced, and at thesame time, chroma coding performance is improved. For ease ofunderstanding, the detailed description is as follows.

PDPC modes in related technologies are same in luma and chroma, and theyall use the planar prediction mode, the DC prediction mode, thehorizontal prediction mode, the vertical prediction mode, the angularprediction mode with the index smaller than or equal to 10, or theangular prediction mode with the index greater than or equal to 58.

In an implementation of the present disclosure, the chroma prediction ismodified as, when a chroma prediction is performed on a current block byusing any one of a prediction mode with an index smaller than or equalto 10 but not the planar prediction mode or the DC prediction mode, anda prediction mode with an index greater than or equal to 58, among thespatial prediction modes within the 94 components shown in FIG. 2C, anobtained chroma prediction value is not refined by using the PDPC. Inother words, when the chroma prediction is performed on the currentblock, the chroma prediction mode using PDPC is reduced as, PDPC is usedonly for the planar prediction mode, the DC prediction mode, thehorizontal prediction mode or the vertical prediction mode; and when theluma prediction is performed on the current block, the luma predictionmodes using PDPC are still the planar prediction mode, the DC predictionmode, the horizontal prediction mode, the vertical prediction mode, andthe angular prediction mode with the index smaller than or equal to 10and the angular prediction mode with the index greater than or equal to58 among the spatial prediction modes within the 94 components, that is,the luma prediction modes using PDPC keep unchanged.

Accordingly, syntax semantics in VTM5.0 are modified, that is, the modeusing PDPC is limited as follows: PDPC is used when following cases(201) to (204) are all met.

(201) When the current block is a luma block, the ISP partition is notused; or, the current block is a chroma block.

(202) When the current block is a luma block, the 0th reference line isused for prediction; or, the current block is a chroma block.

(203) The current block is not coded by using the BDPCM.

(204) Any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, the angular predictionmode with the index being smaller than or equal to 10 and the currentblock being not the chroma block, or the angular prediction mode withthe index being greater than or equal to 58 and the current block beingnot the chroma block.

The above method for modifying the PDPC mode provided by animplementation of the present disclosure can obtain following beneficialeffects on the premise of basically not affecting performance.

In a first aspect, it can improve chroma coding performance on thepremise of basically not affecting luma coding performance. Experimentaldata show that a performance of a Y component is lost by 0.03%; aperformance of a U component is improved by 0.16%, and a performance ofa V component is increased by 0.14%. It can be seen that the performanceloss of the Y component is basically unchanged; and the performanceimprovement of the U component and the performance improvement of the Vcomponent are obviously improved.

In a second aspect, complexity can be reduced. There are relatively manyapplication scenarios of PDPC in related technologies. By using themethod provided by an implementation of the present disclosure, thechroma prediction modes using PDPC can be reduced to 4 chroma predictionmodes, thereby saving processing complexity, and finally decoding timeis greatly shortened.

A protection point of an implementation of the present disclosure is tomodify a usage scenario of PDPC in a chroma prediction. No matter PDPCis used only for the planar prediction mode, the DC prediction mode, thehorizontal prediction mode, and the vertical prediction mode in thechroma prediction modes in a main solution, or part of the chromaprediction modes in an alternative solution are prohibited from usingPDPC, it is to reduce the prediction modes using PDPC under the chromaprediction, reduce complexity of algorithm, and improve codingperformance of chroma. Herein, alternative solutions mainly includefollowing solutions.

Alternative Solution 1:

The chroma prediction is modified as, when the chroma prediction isperformed on the current block by using any one of the horizontalprediction mode, the vertical prediction mode, and a prediction modewith an index smaller than or equal to 10, and a prediction mode with anindex greater than or equal to 58, among the spatial prediction modeswithin the 94 components shown in FIG. 2C, an obtained chroma predictionvalue is not refined by using the PDPC. That is, all chroma predictionmodes are prohibited from using PDPC, while the luma prediction modeusing PDPC keeps unchanged when the luma prediction is performed on thecurrent block.

Accordingly, syntax semantics in VTM5.0 are modified as, PDPC is usedwhen following cases (301) to (305) are all met.

(301) The current block is a luma block.

(302) For the current block, ISP is not used.

(303) The current block is predicted using the 0th reference line.

(304) The current block is not coded by using the BDPCM.

(305) Any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, the angular predictionmode with the index smaller than or equal to 10, or the angularprediction mode with the index greater than or equal to 58.

Alternative Solution 2:

The chroma prediction is modified as, when the chroma prediction isperformed on the current block by using any one of the horizontalprediction mode, the vertical prediction mode, and the prediction modewith the index smaller than or equal to 10 but not the planar predictionmode or the DC prediction mode, and the prediction mode with the indexgreater than or equal to 58, among the spatial prediction modes withinthe 94 components, an obtained chroma prediction value is not refined byusing the PDPC. In other words, when the chroma prediction is performed,PDPC is used only in the planar prediction mode and the DC predictionmode; when the luma prediction is performed on the current block, theluma prediction mode using PDPC keeps unchanged.

Accordingly, syntax semantics in VTM5.0 are modified as, PDPC is usedwhen following conditions (401) to (404) are all met.

(401) When the current block is a luma block, the ISP partition is notused; or, the current block is a chroma block.

(402) When the current block is a luma block, the 0th reference line isused for prediction; or, the current block is a chroma block.

(403) The current block is not coded by using the BDPCM.

(404) Any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode with the current block being not the chroma block, thevertical prediction mode with the current block being not the chromablock, the angular prediction mode with the index being smaller than orequal to 10 and the current block being not the chroma block, or theangular prediction mode with the index being greater than or equal to 58and the current block being not the chroma block.

Alternative solution 3:

The chroma prediction is modified as, when the chroma prediction isperformed on the current block by using any one of the prediction modewith the index smaller than 2 but not the planar prediction mode or theDC prediction mode, the prediction mode with the index greater than 2and smaller than or equal to 10, the prediction mode with the indexgreater than or equal to 58 and smaller than 66, and the prediction modewith the index greater than 66, among the spatial prediction modeswithin the 94 components, an obtained chroma prediction value is notrefined by using the PDPC. In other words, PDPC is used only in any oneof the planar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, the prediction modeindexed 2, and the prediction mode indexed 66; when the luma predictionis performed on the current block, the luma prediction mode using PDPCkeeps unchanged.

Accordingly, syntax semantics in VTM5.0 are modified as, PDPC is usedwhen following cases (501) to (504) are all met.

(501) When the current block is a luma block, the ISP partition is notused; or, the current block is a chroma block.

(502) When the current block is a luma block, the 0th reference line isused for prediction; or, the current block is a chroma block.

(503) The current block is not coded by using the BDPCM.

(504) Any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, the prediction modeindexed 2, the prediction mode indexed 66, the angular prediction modewith the index being smaller than or equal to 10 and the current blockbeing not the chroma block, or the angular prediction mode with theindex being greater than or equal to 58 and the current block being notthe chroma block.

Alternative solution 4:

The chroma prediction and the luma prediction are modified as, when thechroma prediction and the luma prediction on the current block areperformed by using any one of a prediction mode with an index smallerthan or equal to 10 and greater than 8, and a prediction mode with anindex greater than or equal to 58 and smaller than 60, among the spatialprediction modes within the 94 components, neither an obtained chromaprediction value nor a luma prediction value is refined by using thePDPC. In other words, the luma and chroma prediction modes using PDPCare reduced simultaneously.

Accordingly, syntax semantics in VTM5.0 are modified as, PDPC is usedwhen following cases (601) to (604) are met.

(601) When the current block is a luma block, the ISP partition is notused; or, the current block is a chroma block.

(602) When the current block is a luma block, the 0th reference line isused for prediction; or, the current block is a chroma block.

(603) The current block is not coded by using the BDPCM.

(604) Any of following conditions is met: the prediction mode is theplanar prediction mode, the DC prediction mode, the horizontalprediction mode, the vertical prediction mode, an angular predictionmode with an index smaller than or equal to 8, and an angular predictionmode with an index greater than or equal to 60.

Based on the foregoing implementations, an implementation of the presentdisclosure provides an apparatus for processing information, whereinvarious modules included in the apparatus and various units included inthe modules may be implemented by a processor in an electronic device.Of course, they may also be implemented by a specific logic circuit. Inan implementation process, the processor may be a central processingunit (CPU), a microprocessor (MPU), a digital signal processor (DSP) ora field programmable gate array (FPGA), etc.

FIG. 12A is a schematic structure diagram of an apparatus for processinginformation according to an implementation of the present disclosure. Asshown in FIG. 12A, the apparatus 120 for processing information includesa prediction module 121, a residual determination module 122, and asignalling module 123.

The prediction module 121 is configured to, for inputted source videodata, predict a colour component of a coding block in the source videodata according to a prediction mode to obtain a first prediction block,wherein the prediction mode is preset and is a PDPC mode.

The residual determination module 122 is configured to determine adifference between the colour component of the coding block and aprediction value of the first prediction block to obtain a residualblock.

The signalling module 123 is configured to signal the residual block andthe prediction mode in a bitstream.

In another implementation, the colour component is a luma value or achroma value.

In another implementation, as shown in FIG. 12B, the prediction module121 includes a chroma prediction unit 1210, configured to perform achroma prediction on a chroma value of the coding block according to anyprediction mode in a first mode combination to obtain the firstprediction block. Wherein the first mode combination includes followingPDPC modes: a prediction mode with an index smaller than a firstnumerical value but not a planar prediction mode or a DC predictionmode, a prediction mode with an index greater than the first numericalvalue and smaller than or equal to a second numerical value, aprediction mode with an index greater than or equal to a third numericalvalue and smaller than a fourth numerical value, and a prediction modewith an index greater than the fourth numerical value, among N presetspatial prediction modes within a component.

In another implementation, the chroma prediction unit 1210 is configuredto perform the chroma prediction on the chroma value of the coding blockaccording to any prediction mode in a second mode combination to obtainthe first prediction block. Wherein the second mode combination includesfollowing PDPC modes: a prediction mode with an index smaller than orequal to the second numerical value but not a planar prediction mode ora DC prediction mode, and a prediction mode with an index greater thanor equal to the third numerical value, among the N preset spatialprediction modes within the component.

In another implementation, the chroma prediction unit 1210 is configuredto perform the chroma prediction on the chroma value of the coding blockaccording to any prediction mode in a third mode combination to obtainthe first prediction block. Wherein the third mode combination includesfollowing PDPC modes: a horizontal prediction mode, a verticalprediction mode, and a prediction mode with an index smaller than orequal to the second numerical value but not a planar prediction mode ora DC prediction mode, and a prediction mode with an index greater thanor equal to the third numerical value, among the N preset spatialprediction modes within the component.

In another implementation, the chroma prediction unit 1210 is configuredto perform the chroma prediction on the chroma value of the coding blockaccording to any prediction mode in a fourth mode combination to obtainthe first prediction block. Wherein the fourth mode combination includesfollowing PDPC modes: the vertical prediction mode, and a predictionmode with an index smaller than or equal to the second numerical valueand including a planar prediction mode and a DC prediction mode, and aprediction mode with an index greater than or equal to the thirdnumerical value among the N preset spatial prediction modes within thecomponent.

In another implementation, as shown in FIG. 12B, the prediction module121 further includes a luma prediction unit 1212, configured to performa luma prediction on a luma value of the coding block according to anyprediction mode in any one of the first to fourth mode combinations toobtain the first prediction block.

An implementation of the present disclosure provides another apparatusfor processing information. FIG. 13 is a schematic structure diagram ofanother apparatus for processing information according to animplementation of the present disclosure. As shown in FIG. 13, theapparatus 130 for processing information includes a prediction module131, a recovery module 132, and a video output module 133.

The prediction module 131 is configured to: for an inputted bitstream,predict a colour component of a coding block in the bitstream accordingto a prediction mode in the bitstream to obtain a second predictionblock; wherein the prediction mode is preset and is a PDPC mode.

The recovery module 132 is configured to determine a sum of a differenceof a residual block in the bitstream and a prediction value of thesecond prediction block to obtain a reconstructed block.

The video output module 133 is configured to process the reconstructedblock and output processed video data.

In another implementation, the colour component is a chroma value or aluma value.

In another implementation, the prediction mode is any prediction mode inthe first mode combination. Wherein the first mode combination the firstmode combination includes following PDPC modes: a prediction mode withan index smaller than a first numerical value but not a planarprediction mode or a DC prediction mode, a prediction mode with an indexgreater than the first numerical value and smaller than or equal to asecond numerical value, a prediction mode with an index greater than orequal to a third numerical value and smaller than a fourth numericalvalue, and a prediction mode with an index greater than the fourthnumerical value, among N preset spatial prediction modes within acomponent.

In another implementation, the prediction mode is any prediction mode inthe second mode combination. Wherein, the second mode combinationincludes following PDPC modes: a prediction mode with an index smallerthan or equal to the second numerical value but not a planar predictionmode or a DC prediction mode, and a prediction mode with an indexgreater than or equal to the third numerical value, among the N presetspatial prediction modes within the component.

In another implementation, the prediction mode is any prediction mode inthe third mode combination. Wherein the third mode combination includesfollowing PDPC modes: a horizontal prediction mode, a verticalprediction mode, and a prediction mode with an index smaller than orequal to the second numerical value but not a planar prediction mode ora DC prediction mode, and a prediction mode with an index greater thanor equal to the third numerical value, among the N preset spatialprediction modes within the component.

In another implementation, the prediction mode is any prediction mode inthe fourth mode combination. Wherein the fourth mode combinationincludes following PDPC modes: a horizontal prediction mode, a verticalprediction mode, and a prediction mode with an index smaller than orequal to the second numerical value and including a planar predictionmode and a DC prediction mode, and a prediction mode with an indexgreater than or equal to the third numerical value, among the N presetspatial prediction modes within the component.

An implementation of the present disclosure provides yet anotherapparatus for processing information. FIG. 14 is a schematic structurediagram of yet another apparatus for processing information according toan implementation of the present disclosure. As shown in FIG. 14, theapparatus 140 for processing information includes: a prediction module1401, a refinement module 1402, a residual determination module 1403,and a signalling module 1404.

The prediction module 1401 is configured to: for inputted source video,predict a colour component of a coding block in the source video dataaccording to a prediction mode to obtain a third prediction block,wherein the prediction mode is preset and is a PDPC mode.

The refinement module 1402 is configured to refine the third predictionblock according to the prediction mode to obtain a third refinementblock.

The residual determination module 1403 is configured to determine adifference between the colour component of the coding block and arefinement value of the third refinement block to obtain a residualblock.

The signalling module 1404 is configured to signal the residual blockand the prediction mode in a bitstream.

In another implementation, the colour component is a luma value or achroma value.

In another implementation, the prediction module 1401 is configured toperform a chroma prediction on a chroma value of the coding blockaccording to any prediction mode in a fifth mode combination to obtainthe third prediction block. Wherein the fifth mode combination includesfollowing PDPC modes: a planar prediction mode, a DC prediction mode, ahorizontal prediction mode, a vertical prediction mode, a predictionmode with an index being a first numerical value among N preset spatialprediction modes within a component, and a prediction mode with an indexbeing a fourth numerical value among the N preset spatial predictionmodes within the component.

In another implementation, the prediction module 1401 is configured to:when following cases 1 to 4 are all met, predict the colour component ofthe coding block according to the prediction mode to obtain the thirdprediction block.

In the case 1, when the coding block is a luma block, and an IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, a 0th referenceline is used for prediction; or, the coding block is a chroma block;wherein the 0th reference line refers to a reference line closest to thecoding block.

In the case 3, the coding block is not coded by using a Block-basedDelta Pulse Code Modulation (BDPCM).

In the case 4, any of following conditions is met: the prediction modeis the horizontal prediction mode; the prediction mode is the verticalprediction mode; the prediction mode is a prediction mode with an indexbeing the first numerical value among the N preset spatial predictionmodes within a component; the prediction mode is a prediction mode withthe index being the fourth numerical value; the prediction mode is aprediction mode with an index smaller than or equal to the secondnumerical value, and the coding block is not a chroma block; or, theprediction mode is a prediction mode with an index greater than or equalto the third numerical value, and the coding block is not a chromablock.

In another implementation, the prediction module 1401 is configured toperform the chroma prediction on the chroma value of the coding blockaccording to any prediction mode in a sixth mode combination to obtainthe third prediction block. Wherein the sixth mode combination includesfollowing PDPC modes: the planar prediction mode, the DC predictionmode, the horizontal prediction mode, and the vertical prediction mode.

In another implementation, the prediction module 1401 is configured to:when following cases 1 to 4 are all met, predict the colour component ofthe coding block according to the prediction mode to obtain the thirdprediction block.

In the case 1, when the coding block is a luma block, and the IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, the 0th referenceline is used for prediction; or, the coding block is a chroma block;wherein the 0th reference line refers to the reference line closest tothe coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode; theprediction mode is the vertical prediction mode; the prediction mode isa prediction mode with an index smaller than or equal to the secondnumerical value and the coding block is not a chroma block; or, theprediction mode is a prediction mode with the index greater than orequal to the third numerical value, and the coding block is not a chromablock.

In another implementation, the prediction module 1401 is configured toperform the chroma prediction on the chroma value of the coding blockaccording to any prediction mode in a seventh mode combination to obtainthe third prediction block; wherein the seventh mode combinationincludes following PDPC modes: a planar prediction mode, and a DCprediction mode.

In another implementation, the prediction module 1401 is configured to:when following cases 1 to 4 are all met, predict the colour component ofthe coding block according to the prediction mode to obtain the thirdprediction block.

In the case 1, when the coding block is a luma block, and the IntraSub-Partitions is not used; or, the coding block is a chroma block.

In the case 2, when the coding block is a luma block, the 0th referenceline is used for prediction; or, the coding block is a chroma block;wherein the 0th reference line refers to the reference line closest tothe coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode, and thecoding block is not a chroma block; the prediction mode is the verticalprediction mode, and the coding block is not a chroma block; theprediction mode is a prediction mode with the index smaller than orequal to the second numerical value and the coding block is not a chromablock; or, the prediction mode is a prediction mode with the indexgreater than or equal to the third numerical value, and the coding blockis not a chroma block.

In another implementation, the prediction module 1401 is configured to:when following cases 1 to 4 are all met, predict the colour component ofthe coding block according to the prediction mode to obtain the thirdprediction block.

In the case 1, the coding block is a luma block, and an IntraSub-Partitions is not used.

In the case 2, the coding block is a luma block, and the 0th referenceline is used for prediction; wherein the 0th reference line refers tothe reference line closest to the coding block.

In the case 3, the coding block is not coded by using the BDPCM.

In the case 4, any of following conditions is met: the prediction modeis the planar prediction mode; the prediction mode is the DC predictionmode; the prediction mode is the horizontal prediction mode; theprediction mode is the vertical prediction mode; the prediction mode isa prediction mode with the index smaller than or equal to the secondnumerical value; or, the prediction mode is a prediction mode with theindex greater than or equal to the third numerical value.

An implementation of the present disclosure provides further anotherapparatus for processing information. FIG. 15 is a schematic structurediagram of yet another apparatus for processing information according toan implementation of the present disclosure. As shown in FIG. 15, theapparatus 150 for processing information includes a prediction module1501, a refinement module 1502, a recovery module 1503, and a videooutput module 1504.

The prediction module 1501 is configured to: for an inputted bitstream,predict a colour component of a coding block in the bitstream accordingto a prediction mode in the bitstream to obtain a fourth predictionblock; wherein the prediction mode is preset and is a PDPC mode.

The refinement module 1502 is configured to refine the fourth predictionblock according to the prediction mode to obtain a fourth refinementblock.

The recovery module 1503 is configured to determine a sum of adifference of a residual block in the bitstream and a refinement valueof the fourth refinement block to obtain a reconstructed block.

The video output module 1504 is configured to process the reconstructedblock and output processed video data.

In another implementation, the colour component is a chroma value or aluma value.

The description of the above apparatus implementation is similar to thedescription of the above method implementation, and has similarbeneficial effects as the method implementation. For technical detailsnot disclosed in the apparatus implementation of the present disclosure,please refer to the description of the method implementation of thepresent disclosure to understand.

It should be noted that in the implementations of the presentdisclosure, if the above method for processing information isimplemented in a form of a software function module, and when sold orused as an independent product, it may also be stored in a computerreadable storage medium. Based on this understanding, the technicalsolutions of the implementations of the present disclosure, in essence,or the part contributing to the related art, may be embodied in a formof a software product. The computer software product is stored in astorage medium, and includes several instructions to make an electronicdevice (which may be a mobile phone, a tablet, an electronic reader, anunmanned aerial vehicle, a wearable device (such as smart glasses, orthe like), a sweeping robot, a personal computer, a navigator, a videotelephone, a television, a server, etc.) perform all or part of themethod described in various implementations of the present disclosure.And the aforementioned storage medium includes various media which maystore program codes, such as a U disk, a mobile hard disk, a Read OnlyMemory (ROM), a magnetic disk or an optical disk. Thus, theimplementations of the present disclosure are not limited to anyspecific combination of hardware and software.

Correspondingly, an implementation of the present disclosure provides anelectronic device. FIG. 16 is a schematic diagram of a hardware entityof an electronic device according to an implementation of the presentdisclosure. As shown in FIG. 16, the electronic device 160 includes amemory 161 and a processor 162. The memory 161 stores a computer programthat may be run on the processor 162, and the processor 162 implementsacts in the method for processing information provided in the aboveimplementations when executing the program.

It should be noted that the memory 161 is configured to storeinstructions and applications executable by the processor 162, and mayalso buffer data (such as picture data, audio data, voice communicationdata, and video communication data) to be processed or has beenprocessed by the processor 162 and each module in the electronic device160, which may be implemented by FLASH or a Random Access Memory (RAM).

An implementation of the present disclosure provides a computer readablestorage medium, on which a computer program is stored, wherein when thecomputer program is executed by a processor, acts in the method forprocessing information provided in the above implementations areimplemented.

It should be pointed out here that the descriptions of the above storagemedium and the device implementation are similar to the description ofthe above method implementations, and they have similar beneficialeffects as the method implementations. For technical details notdisclosed in the storage medium and the device implementation of thepresent disclosure, please refer to the description of the methodimplementations of the present disclosure to understand.

It should be understood that “one implementation” or “an implementation”mentioned throughout the specification means that a particular feature,a structure, or a characteristic related to the implementations isincluded in at least one implementation of the present disclosure. Thus,“in one implementation” or “in an implementation” in the specificationmay not definitely refer to the same implementation. In addition, theparticular features, structures, or characteristics may be combined inany suitable manner in one or more implementations. It should beunderstood that in various implementations of the present disclosure,sequence numbers of the various processes do not imply an order ofexecution of the various processes, which should be determined by theirfunctions and internal logics, and should not constitute any limitationon implementation processes of the implementations of the presentdisclosure. The above-mentioned serial numbers of the implementations ofthe present disclosure are only for description, and do not representsuperiority and inferiority of the implementations.

It should be noted that in the present disclosure, the terms “include”,“contain” or any other variations thereof are intended to cover anon-exclusive inclusion, such that a process, method, article, or devicethat includes a list of elements includes not only those elements butalso other elements not expressly listed, or further includes elementsinherent to such process, method, article, or device. An element definedby a statement “include one . . . ” does not exclude presence of anadditional identical element in the process, the method, an article, orthe apparatus that includes the element, without more limitations.

In several implementations provided by the present disclosure, it shouldbe understood that disclosed devices and methods may be implemented inanother mode. The device implementations described above are onlyillustrative, for example, a partition of units is only a logicalfunction partition, and there may be other partition manners in actualimplementation. For example, multiple units or components may becombined or integrated into another system, or some features may beignored or not executed. In addition, mutual coupling or direct couplingor communication connection between various components shown ordiscussed may be indirect coupling or communication connection betweendevices or units through some interfaces, and may be electrical,mechanical or in other forms.

The above units described as separate components may or may not bephysically separated, and a component shown as the unit may be or maynot be a physical unit; it may be located in one place, or may bedistributed over multiple network units. Some or all of the unitstherein may be selected according to an actual requirement to achieve apurpose of the solution of the present implementation.

In addition, various functional units in various implementations of thepresent disclosure may all be integrated in one processing unit, or eachunit may be separately presented as one unit, or two or more units maybe integrated in one unit. The above-mentioned integrated units may beimplemented in a form of hardware, or in a form of hardware plussoftware functional units.

One ordinary skilled in the art can understand that, all or part of theacts for implementing the above method implementations may beaccomplished by hardware related to program instructions, and theaforementioned program may be stored in a computer readable storagemedium. The program, when executed, performs acts including the abovemethod implementations. And the aforementioned storage media include:various media which may store program codes, such as a removable storagedevice, a Read Only Memory (ROM), a magnetic disk, or an optical disk,etc.

Alternatively, the integrated units described above in the presentdisclosure may be stored in a computer readable storage medium, ifimplemented in a form of software functional module and sold or used asa separate product. Based on this understanding, the technical solutionsof the implementations of the present disclosure, in essence, or thepart contributing to the related art, may be embodied in a form of asoftware product. The computer software product is stored in a storagemedium, and includes several instructions to make an electronic device(which may be a mobile phone, a tablet, an electronic reader, anunmanned aerial vehicle, a wearable device (such as smart glasses, orthe like), a sweeping robot, a personal computer, a navigator, a videotelephone, a television, a server, etc.) perform all or part of themethod described in various implementations of the present disclosure.And the aforementioned storage medium includes various media which maystore program codes, such as a removable storage device, a ROM, amagnetic disk, or an optical disk, etc.

The methods disclosed in several method implementations provided in thepresent disclosure may be arbitrarily combined without conflict toobtain a new method implementation.

The features disclosed in several product implementations provided inthe present disclosure may be arbitrarily combined without conflict toobtain a new product implementation.

The features disclosed in several method or device implementationsprovided in the present disclosure may be arbitrarily combined withoutconflict to obtain a new method implementation or device implementation.

What are described above are merely implementations of the presentdisclosure, but the protection scope of the present disclosure is notlimited thereto. Any variation or substitution that may easily occur toa person skilled in the art within the technical scope disclosed by thepresent disclosure shall be included within the protection scope of thepresent disclosure. Therefore, the protection scope of the presentdisclosure shall be the protection scope defined by the claims.

INDUSTRIAL APPLICABILITY

In an implementation of the present disclosure, for inputted sourcevideo data, a colour component of a coding block in the source videodata is predicted according to a prediction mode which is preset and isa PDPC mode, after a first prediction block is obtained, each predictionvalue in the first prediction block is not refined, but a differencebetween a prediction value of the first prediction block and the colourcomponent of the coding block is directly determined. In this way, onthe premise of ensuring video coding and decoding performance,processing complexity of intra prediction can be reduced.

What is claimed is:
 1. A method for processing information, applied to adecoder, comprising: decoding a bitstream, obtaining a prediction mode,predicting a colour component of a coding block according to theprediction mode to obtain a fourth prediction block, wherein theprediction mode is preset and is a Position-Dependent PredictionCombination (PDPC) mode; refining the fourth prediction block accordingto the prediction mode to obtain a fourth refinement block; and decodingbitstream, and obtaining a sum of a residual block and the fourthrefinement block to obtain a reconstructed block; processing thereconstructed block, and outputting processed video data.
 2. The methodof claim 1, wherein the colour component is a chroma component.
 3. Themethod of claim 1, further comprising: performing a chroma prediction ona chroma value of the coding block according to the prediction mode toobtain the fourth prediction block; wherein, the prediction mode is aprediction mode with an index smaller than a first numerical value butnot a planar prediction mode or a DC prediction mode.
 4. The method ofclaim 1, further comprising: performing a chroma prediction on a chromavalue of the coding block according to the prediction mode to obtain thefourth prediction block; wherein, the prediction mode is a predictionmode with an index smaller than or equal to a second numerical value butnot a planar prediction mode or a DC prediction mode.
 5. The method ofclaim 1, further comprising: performing a chroma prediction on a chromavalue of the coding block according to the prediction mode to obtain thefourth prediction block; wherein the prediction mode is a predictionmode with an index greater than or equal to a third numerical value andsmaller than a fourth numerical value.
 6. The method of claim 3, whereinthe first numerical value is
 2. 7. The method of claim 4, wherein thesecond numerical value is 8 or
 10. 8. The method of claim 5, wherein thethird numerical value is 58 or 60, the fourth numerical value is
 66. 9.A method for processing information, applied to an encoder, comprising:predicting a colour component of a coding block according to aprediction mode to obtain a fourth prediction block, wherein theprediction mode is preset and is a Position-Dependent PredictionCombination (PDPC) mode; refining the fourth prediction block accordingto the prediction mode to obtain a fourth refinement block; anddetermining a difference between the coding block and the fourthrefinement block to obtain a residual block; and signalling the residualblock and the prediction mode in a bitstream.
 10. The method of claim 9,wherein the colour component is a chroma component.
 11. The method ofclaim 9, further comprising: performing a chroma prediction on a chromavalue of the coding block according to the prediction mode to obtain thefourth prediction block; wherein, the prediction mode is a predictionmode with an index smaller than a first numerical value but not a planarprediction mode or a DC prediction mode.
 12. The method of claim 9,further comprising: performing a chroma prediction on a chroma value ofthe coding block according to the prediction mode to obtain the fourthprediction block; wherein, the prediction mode is a prediction mode withan index smaller than or equal to a second numerical value but not aplanar prediction mode or a DC prediction mode.
 13. The method of claim9, further comprising: performing a chroma prediction on a chroma valueof the coding block according to the prediction mode to obtain thefourth prediction block; wherein the prediction mode is a predictionmode with an index greater than or equal to a third numerical value andsmaller than a fourth numerical value.
 14. The method of claim 11,wherein the first numerical value is
 2. 15. The method of claim 12,wherein the second numerical value is 8 or
 10. 16. The method of claim13, wherein the third numerical value is 58 or 60, the fourth numericalvalue is
 66. 17. A video decoding apparatus, comprising a memory and aprocessor, wherein the memory stores a computer program which isrunnable on the processor, and the processor implements following actswhen executing the program: decoding a bitstream, obtaining a predictionmode, predicting a colour component of a coding block according to theprediction mode to obtain a fourth prediction block, wherein theprediction mode is preset and is a Position-Dependent PredictionCombination (PDPC) mode; refining the fourth prediction block accordingto the prediction mode to obtain a fourth refinement block; and decodingbitstream, and obtaining a sum of a residual block and the fourthrefinement block to obtain a reconstructed block; processing thereconstructed block, and outputting processed video data.
 18. A videoencoding apparatus, comprising a memory and a processor, wherein thememory stores a computer program which is runnable on the processor, andthe processor implements following acts when executing the program:predicting a colour component of a coding block according to aprediction mode to obtain a fourth prediction block, wherein theprediction mode is preset and is a Position-Dependent PredictionCombination (PDPC) mode; refining the fourth prediction block accordingto the prediction mode to obtain a fourth refinement block; anddetermining a difference between the coding block and the fourthrefinement block to obtain a residual block; and signalling the residualblock and the prediction mode in a bitstream.